



<?php $this->widget('ext.selgridview.BootSelGridView',array(
    'id' => 'menu-grid',
    'type' => 'striped condensed',
    'dataProvider' => $model->search(),
    'filter' => $model,
    'columns' => array(
        'id',
        'nombre',
        'precio',
        array(
                    'name' => 'seccion_id',
                    'value' => 'isset($data->seccion) ? $data->seccion : null',
                    'filter' => CHtml::listData(MenuSeccion::model()->findAll(), 'id', MenuSeccion::representingColumn()),
                ),
        'descripcion',
        'imagen',
		array(
			'class' => 'CButtonColumn',
                    
//                    'class' => 'CButtonColumn',
                    'template' => '{view}  {update} {delete} ',
                    'buttons' => array(
                        'view' => array(
                            'label' => '<button class="btn btn-success"><i class=" icon-eye-open"></i></button>',
                            'options' => array('title' => 'Ver'),
                            'url' => 'Yii::app()->createUrl("menus/menu/view?id=".$data->id)',
                            'imageUrl' => false,
                        ),
//                         'view' => array(
//                            'label' => '<button class="btn btn-success"><i class="icon-check"></i></button>',
//                            'options' => array('title' => 'Ver'),
//                            'imageUrl' => false,
//                        ),
                        'update' => array(
                            'label' => '<button class="btn btn-primary"><i class=" icon-pencil"></i></button>',
                            'options' => array('title' => 'Actualizar'),
                             'url' => 'Yii::app()->createUrl("menus/menu/update?id=".$data->id)',
                            'imageUrl' => false,
                        ),
                        'delete' => array(
                            'label' => '<button class="btn btn-danger"><i class=" icon-trash"></i></button>',
                            'options' => array('title' => 'Eliminar'),
                            'imageUrl' => false,
                        ),
                    ),
                    'htmlOptions' => array(
                        'width' => '130px'
                    )
                
                    
		),
	),
)); ?>